// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.text.TextUtils;
import com.nnee.p_pr.p_activity.p_a.cls_s;
import com.nnee.p_pr.p_activity.p_view.cls_FlingGallery;
import com.nnee.p_pr.p_app.cls_PrisApp;
import com.nnee.p_pr.p_atom.cls_ad;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.cls_b;
import com.nnee.p_pr.p_prot.cls_d;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            ArticleGalleryActivity, dc

class cls_cd extends cls_b
{

	cls_cd(cls_ArticleGalleryActivity articlegalleryactivity)
    {
		super();
		a = articlegalleryactivity;
        
    }

    public void a(int i, int j, String s1, boolean flag)
    {
        if(cls_ArticleGalleryActivity.x(a).contains(new Integer(i)))
        {
            cls_ArticleGalleryActivity.x(a).remove(new Integer(i));
            cls_ArticleGalleryActivity.a(a, false);
            cls_dc.a(cls_ArticleGalleryActivity.a(a), j);
        }
    }

    public void a(int i, cls_d d1, boolean flag)
    {
        Integer integer = Integer.valueOf(i);
        if(!cls_ArticleGalleryActivity.x(a).contains(integer)) {
        	if(cls_ArticleGalleryActivity.o(a) != null && cls_ArticleGalleryActivity.o(a).h == null)
            {
                cls_ArticleGalleryActivity.a(a, cls_PrisApp.a().p());
                if(cls_ArticleGalleryActivity.o(a) != null && cls_ArticleGalleryActivity.o(a).h != null)
                    com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.d(a).a(new cls_s(cls_ArticleGalleryActivity.a(a), cls_ArticleGalleryActivity.p(a), cls_ArticleGalleryActivity.q(a), cls_ArticleGalleryActivity.r(a), cls_ArticleGalleryActivity.o(a), com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.s(a), false), cls_ArticleGalleryActivity.t(a));
            }
            if(cls_ArticleGalleryActivity.o(a) != null && cls_ArticleGalleryActivity.o(a).h != null && cls_ArticleGalleryActivity.o(a).h.size() > 0 && flag)
            {
                if(cls_ArticleGalleryActivity.t(a) >= cls_ArticleGalleryActivity.o(a).h.size())
                    com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.b(a, -1 + cls_ArticleGalleryActivity.o(a).h.size());
                com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.d(a).a(new cls_s(cls_ArticleGalleryActivity.a(a), cls_ArticleGalleryActivity.p(a), cls_ArticleGalleryActivity.q(a), cls_ArticleGalleryActivity.r(a), cls_ArticleGalleryActivity.o(a), com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.s(a), false), cls_ArticleGalleryActivity.t(a));
            }
        } else {
        	String s1;
            cls_ArticleGalleryActivity.x(a).remove(integer);
            com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.b(a, d1);
            s1 = com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity.s(a);
            cls_ArticleGalleryActivity.a(a, (String)null);
            cls_ArticleGalleryActivity.a(a, false);
            if(d1.g != null){
            	String s2 = d1.g.b(cls_g.iEPageNext);
                if(!TextUtils.isEmpty(s2) && !s2.equals(s1))
                    cls_ArticleGalleryActivity.a(a, s2);
            }
        }
 
    }

    final cls_ArticleGalleryActivity a;
}
